package learn.ch1.pool;

import java.util.concurrent.ThreadFactory;

/**
 * @Description todo
 * @Author yusj
 * @Date 2021/12/13
 * @Version 1.0
 */
public class TsPoolThFactory01 implements ThreadFactory {
    @Override
    public Thread newThread(Runnable r) {
        Thread t=new Thread(r);
        t.setName("myThread-"+r.getClass().getName());
        return t;
    }
}
